<?php 
$menu = $this->getMenu();
?>
<ul id="menu" class="shadow">
	<?php foreach($menu->item as $item): ?>
		<?php $hasSubMenu = empty($item["menu"]) ? false : true; ?>
		<li>
			<a href="<?php echo empty($item["href"]) ? "javascript:void(0);" : $item["href"]; ?>"><?php echo $item["label"]; ?></a>
			<?php if(!empty($item->menu)): ?>
				<?php echo $this->parseElement("submenu", array("submenu"=>$item->menu)); ?>
			<?php endif; ?>
		</li>
	<?php endforeach; ?>
	<li class="right"><a href="/authentication/logout">logout</a></li>
</ul>